package com.kykj.kykj.service.impl;

import com.kykj.kykj.dao.ArticleViewsDao;
import com.kykj.kykj.entity.ArticleViewsEntity;
import com.kykj.kykj.service.ArticleViewsService;
import com.kykj.kykj.vo.ArticleViewsVo;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleViewsServiceImpl implements ArticleViewsService {
    @Resource
    ArticleViewsDao articleViewsDao;
    @Override
    public List<ArticleViewsEntity> getArticleViewsList() {
        return articleViewsDao.getArticleViewsList();
    }

    @Override
    public int addArticleViews(ArticleViewsVo articleViewsVo) {
        return articleViewsDao.addArticleViews(articleViewsVo);
    }


    @Override
    public int delArticleViews(int id) {
        return articleViewsDao.delArticleViews(id);
    }

    @Override
    public int upArticleViews(ArticleViewsVo articleViewsVo) {
        return articleViewsDao.upArticleViews(articleViewsVo);
    }


}
